# ================================================= #
# ************** mysql数据库 配置  ************** #
# ================================================= #
import os
def isDocker():
	return os.path.exists('/.dockerenv')

# 数据库地址
DATABASE_ENGINE = "django.db.backends.mysql"
# 数据库地址
DATABASE_HOST = "10.28.1.250"
# 数据库端口
DATABASE_PORT = 6868
# 数据库用户名
DATABASE_USER = "root"
# 数据库密码
DATABASE_PASSWORD = "dolphi123"
# 数据库名
DATABASE_NAME = "dolphi_nav"
if isDocker():
    DATABASE_HOST = os.environ['DATABASE_HOST']
    DATABASE_USER = os.environ['DATABASE_USER']
    DATABASE_PASSWORD = os.environ['DATABASE_PASSWORD']
